//
//  UIView+Frame.h
//  CustomNavigationController
//
//  Created by key on 2017/2/22.
//  Copyright © 2017年 huangsongyao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Frame)

- (CGPoint)origin;
- (CGFloat)x;
- (CGFloat)y;
- (CGFloat)right;
- (CGFloat)bottom;

- (CGSize)size;
- (CGFloat)height;
- (CGFloat)width;

- (CGFloat)maxX;
- (CGFloat)maxY;

- (instancetype)initWithSize:(CGSize)size;

@end
